From: Florian Müllner Date: Wed, 14 Jul 2021 19:10:23 +0000 (+0200) Subject: docs: Add README section for default branch X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~188 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b58f057713b15c62ab16e628918f90dfcfb38373;p=gnome-shell.git docs: Add README section for default branch We are about to change it, so briefly outline how to update local checkouts. (Copied from glib) Part-of: --- diff --git a/README.md b/README.md index 7420bc3ac..523ff3ad7 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,19 @@ Commit messages should follow the [GNOME commit message guidelines](https://wiki.gnome.org/Git/CommitMessages). We require an URL to either an issue or a merge request in each commit. +## Default branch + +The default development branch is `main`. If you still have a local +checkout under the old name, use: +```sh +git checkout master +git branch -m master main +git fetch +git branch --unset-upstream +git branch -u origin/main +git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main +``` + ## License GNOME Shell is distributed under the terms of the GNU General Public License, version 2 or later. See the [COPYING][license] file for details.